<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>11</button>
    <button>22</button>
    <button>33</button>
    <script>
        let btnArr = document.querySelectorAll('button');
        console.log(btnArr);
        // 将伪数组变为真数组
        // Array.from 作用：将伪数组变为真数组
        let arr = Array.from(btnArr);
        console.log(arr);
        console.dir(Array);
        // Array.of 将一些列值，转变为数组
        let arr1 = Array.of('1','5','fwefe',1);
        console.log(arr1);
        // 
        
        let test = [1,2,5,8];
        test.push('1');
        console.log(test);
        // test.
        console.log(test);
        // 需求查找test中大于5的值
        let result = test.find((item,index)=>{return item > 5});
        console.log(result);
        // 数组的高阶方法有哪些：every filter find findIndex foreach map reduce sort
        

    </script>
</body>
</html>